package com.hospital.hospitalserver.service;

import com.hospital.hospitalserver.mapper.DepartmentTypeMapper;
import com.hospital.hospitalserver.util.Response;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 科室类型管理实现类
 * */
@Service
@RequiredArgsConstructor
public class DepartmentTypeService {
    private final DepartmentTypeMapper departmentTypeMapper;

    /**
     * 加载科室类型列表数据
     * */
    public Response getDepartmentTypeList(){
        return Response.success(departmentTypeMapper.getDepartmentTypeList());
    }
}
